#ifndef GFXDIALOG_H
#define GFXDIALOG_H

#include "dialog.h"

// Anyone wishing to use the GraphicDialog class will most likey wish to use
// the other Graphic classes.
#include "gfxbutton.h"
#include "gfxcheckbox.h"
#include "gfxslider.h"


class PLIBEXP GraphicDialog : public Dialog
{
	public:
				GraphicDialog(HWND hParent, HINSTANCE hInstance);
		virtual ~GraphicDialog();

		// Dialog overrides.
		// ...

		// GraphicDialog originals.
		// ...

	protected:
		// Dialog overrides.
		// ...

		// GraphicDialog originals.
		virtual BOOL	drawBackground(HWND hWnd);

		virtual void	end(int32);

		virtual bool8	initialize();

		virtual void	bn_clicked(HWND hWnd, uint32 ctrlID);

//		virtual void show();
//		virtual void setFonts();
//		virtual void setText();
//		virtual void restoreFonts();
//		virtual HWND validData(String&);
//		virtual void UIinputAllowed(bool8);
//
//		void center();
//		
//		HDC createMemDC();
//		HBITMAP createMask(pCBitmap);
//#if BITDEPTH == 16
//		pCBitmap createTransMask(pCBitmap);
//		void blt(HDC hdest, int32 dx, int32 dy, int32 dw, int32 dh,
//				HBITMAP hsrc, HBITMAP hmask, HBITMAP htmask, int32 sx, int32 sy);
//#endif
//		void blt(HDC hdest, int32 dx, int32 dy, int32 dw, int32 dh,
//			HBITMAP hsrc, int32 sx, int32 sy);
//#if BITDEPTH == 8
//		void blt(HDC hdest, int32 dx, int32 dy, int32 dw, int32 dh,
//			HBITMAP hsrc, HBITMAP hmask, int32 sx, int32 sy);
//#endif
//		void drawButton(LPARAM, pCBitmap, HBITMAP hMask = (HBITMAP)0);
//
		BOOL dialogProc(HWND, UINT, WPARAM, LPARAM);

//		void forceSize(HWND);

//	private:
//		void createDblBufDC();
//		void deleteDblBufDC();
//		static BOOL FAR PASCAL maxChildDimensions(HWND, void*);
//		static BOOL FAR PASCAL resizeChild(HWND, LPRECT);
		
	protected:
		pCBitmap	m_bground;
//		HDC			m_hDblBufDC;
//		HDC			m_hBmpDC;
//		HDC			m_hMaskDC;
//		HBITMAP		m_hWasBmp;
//		int32		m_dialogID;
};

#endif
